#include<iostream>
using namespace std;
const int N = 4e3 + 10;
int n;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		cin >> n;
		int ans = 0;
		for (int i = 1; i * i <= n; i++) {
			ans++;
		}
		cout << ans << endl;
	}
	return 0;
}